﻿<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>会员管理</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0"> 
   

<script type="text/javascript">
	function checkAllUser()
	{
		var checkList=document.getElementsByName("checkUser");
		for(var i=0;i<checkList.length;i++)
		{
			checkList[i].checked=document.getElementById("checkAll").checked;
		}
	} 

	function delUser()
	{
		var checkList=document.getElementsByName("checkUser");
		
		for(var i=0;i<checkList.length;i++)
		{
			var isSelected=false;
			if(checkList[i].checked==true)
			{
				isSelected=true;
				break;
			}			
		}
		
		if(isSelected==true)
		{
			if(confirm("确定要删除选定项吗?"))
			{
				document.form1.action="UserAction?method=delUser";
				document.form1.submit();
			}
		}
		else
		{
			alert("您还没有选择任何项！");
			return false;
		}	
	}

</script>
<script type="text/javascript" src="../js/jquery.js"></script>	
<script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>	
  <link rel="stylesheet" href="../css/style2.css" type="text/css"></link>
 </head>
  
<body class="p10">

 <form action="UserServlet?method=manage" method="post" name="form1">
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
 <tr>
 <td height="30" bgcolor="d3eaef" > &nbsp;&nbsp; &nbsp;			  	
  					会员账号: <input type="text" name="loginName" />&nbsp; &nbsp;&nbsp; &nbsp;
  					注册日期从:
			<input type="text" name="startDate" onclick="WdatePicker()" /> 
			&nbsp;&nbsp; 
			到:
			<input type="text" name="endDate" onclick="WdatePicker()" /> 
			&nbsp;&nbsp; &nbsp;
			<input type="submit" value="查询" />
 </tr>
 </table>
 	<div style="margin-top: 5px"></div>
 	
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
					<td height="30">
							<table border="0" cellpadding="0" cellspacing="0" width="100%">
								<tbody>
									<tr>
										<td class="title1" height="24">
											<div class="f_right">
												<span class="White"> <input name="checkAll"
														id="checkAll" onclick="checkAllUser();"
	
type="checkbox">
													全选 &nbsp;&nbsp;<img src="../images/add.gif" height="10"
														width="10"> <a
													style="color: #fff; margin-left: 3px;"
													href="UserAdd.jsp">添加</a>
													&nbsp; <img src="../images/del.gif" height="10" width="10">
													<input value="刪除" onclick="return delUser()";
	
style="background: none; color: #fff; border: none;"
														type="button"> &nbsp;&nbsp; &nbsp;</span><span
													class="STYLE1"> &nbsp;</span>
											</div>
											<img src="../images/tb.gif" height="14" width="14"
												class="ico">
											用户基本信息列表
										</td>
									</tr>
								</tbody>
							</table>
								<div style="margin-top: 8px"></div>
					</td>
				</tr>
				<tr>
    <td><table class="table1" width="100%" border="0" cellpadding="0" cellspacing="1" >
      <tr  class="tr">
        <td width="4%"    ><div align="center">
         选择
        </div></td>
        <td width="10%"  ><div align="center">会员账号</div></td>
        <td width="15%"  ><div align="center">真实姓名</div></td>
        <td width="14%"   ><div align="center">电话号码</div></td>
          <td width="8%"   ><div align="center">邮箱</div></td>
        <td width="8%"   ><div align="center">注册日期</div></td>
        <td width="8%"   ><div align="center">操作</div></td>
      </tr>
     
      <c:forEach items="${vips}" var="vip">
       <tr>
        <td ><div align="center">
          <input type="checkbox" name="checkUser" value=2 />
        </div></td>
        <td ><div align="center">${vip.memberNo}</div></td>
        <td ><div align="center">${vip.userName}</div></td>
        <td ><div align="center">${vip.hendset}</div></td>
           <td ><div align="center">${vip.email}</div></td>
        <td ><div align="center">2014-07-02</div></td>
        <td ><div align="center" ><a href="vip_find?vipId=${vip.id}" >详细</a> | <a href="vip_delete?vipId=${vip.id}") >删除</a> </div></td>
         </tr>
      </c:forEach>
    
    </table>
  </tr>
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="33%"><div align="left"><span class="STYLE22">&nbsp;&nbsp;&nbsp;&nbsp;共有<strong> 2</strong> 条记录，当前第<strong> 1</strong> 页，共 <strong>1</strong> 页</span></div></td>
        <td width="67%"><table width="312" border="0" align="right" cellpadding="0" cellspacing="0">
          <tr>
         
            <td width="49"><div align="center"><img src="../images/main_54.gif" width="40" height="15" /></div></td><!--首页 -->
            <td width="49"><div align="center"><img src="../images/main_56.gif" width="45" height="15" /></div></td><!--前一页 -->
           
           
            
            <td width="49"><div align="center"><img src="../images/main_58.gif" width="45" height="15" /></div></td><!--后一页 -->
            <td width="49"><div align="center"><img src="../images/main_60.gif" width="40" height="15" /></div></td><!--尾页 -->
           
           
            <td width="37" class="STYLE22"><div align="center">转到</div></td>
            <td width="22"><div align="center">
            <select name="pageIndex" onChange=" document.form1.submit()" style="width:32px; height:18px; font-size:12px; border:solid 1px #7aaebd;">
				
				<option value=1 selected> 1</option>
				
			</select>
         
            </div></td>
            <td width="22" class="STYLE22"><div align="center">页</div></td>
         <!-- <td width="35"><a href="UserAction?method=userManage"><img src="../images/main_62.gif" width="26" height="15" /></a></td> -->   
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>

    
</form>
</body>
</html>

